<?php echo $this->fetch('header.html'); ?>
<div id="rightTop">
  <p>限时购设置</p>
  <ul class="subnav">
    <?php if ($_GET['wait_verify']): ?>
    <li><a class="btn1" href="index.php?app=limitedtime_setting">管理</a></li>
    <?php else: ?>
    <li><span>管理</span></li>
    <?php endif; ?>
    <li><a class="btn1" href="index.php?app=limitedtime_setting&amp;act=add">新增</a></li>
  </ul>
</div>
<div class="mrightTop">
  <div class="fontl">
    <form method="get">
       <div class="left">
          标题:
          <input type="hidden" name="wait_verify" value="<?php echo $_GET['limitedtime_title']; ?>" />
          <input type="submit" class="formbtn" value="查询" />
      </div>
      <?php if ($this->_var['filtered']): ?>
      <a class="left formbtn1" href="index.php?app=store<?php if ($_GET['wait_verify']): ?>&amp;wait_verify=<?php echo $_GET['wait_verify']; ?><?php endif; ?>">撤销检索</a>
      <?php endif; ?>
    </form>
  </div>
  <div class="fontr"><?php echo $this->fetch('page.top.html'); ?> </div>
</div>
<div class="tdare">
  <table width="100%" cellspacing="0" class="dataTable">
    <?php if ($this->_var['limitedtimes']): ?>
    <tr class="tatr1">
      <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
      <td class="table-center">标题</span></td>
      <td class="table-center">限时购图</span></td>
      <td class="table-center">开始时间</span></td>
      <td class="table-center">有效期至</span></td>
      <?php if (! $_GET['wait_verify']): ?>
      <td class="table-center"><span ectype="order_by" fieldname="sort_order">排序</span></td>
      <?php endif; ?>
      <td class="handler">操作</td>
    </tr>
    <?php endif; ?>
    <?php $_from = $this->_var['limitedtimes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'limitedtime');if (count($_from)):
    foreach ($_from AS $this->_var['limitedtime']):
?>
    <tr class="tatr2">
      <td class="firstCell"><input type="checkbox" class="checkitem" value="<?php echo $this->_var['limitedtime']['limitedtime_id']; ?>" /></td>
      <td class="table-center"><?php echo $this->_var['limitedtime']['limitedtime_title']; ?></td>
      <td class="table-center"><?php if ($this->_var['limitedtime']['limitedtime_url']): ?><img src="<?php echo $this->_var['limitedtime']['limitedtime_url']; ?>?<?php echo $this->_var['random_number']; ?>" height="30"/><?php endif; ?></td>
      <td class="table-center"><?php echo $this->_var['limitedtime']['start_time']; ?></td>
      <td class="table-center"><?php echo $this->_var['limitedtime']['end_time']; ?></td>
      <?php if (! $_GET['wait_verify']): ?>
      <td class="table-center"><span ectype="inline_edit" fieldname="sort_order" fieldid="<?php echo $this->_var['store']['store_id']; ?>" datatype="pint" title="可编辑" class="editable"><?php echo $this->_var['limitedtime']['sort_order']; ?></span></td>
      <?php endif; ?>
      <td class="handler">
        <?php if (! $_GET['wait_verify']): ?>
        <a href="index.php?app=limitedtime_setting&amp;act=edit&amp;id=<?php echo $this->_var['limitedtime']['limitedtime_id']; ?>">编辑</a> | <a href="javascript:drop_confirm('您确定要删除所选主题的所有信息（包括图片等）吗？', 'index.php?app=limitedtime_setting&amp;act=drop&amp;id=<?php echo $this->_var['limitedtime']['limitedtime_id']; ?>');">删除</a>
        <?php else: ?>
        <a href="index.php?app=limitedtime_setting&amp;act=view&amp;id=<?php echo $this->_var['limitedtime']['limitedtime_id']; ?>">查看</a>
        <?php endif; ?></td>
    </tr>
    <?php endforeach; else: ?>
    <tr class="no_data">
      <td colspan="12">没有符合条件的记录</td>
    </tr>
    <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </table>
  <?php if ($this->_var['limitedtime']): ?>
  <div id="dataFuncs">
    <div class="pageLinks">
      <?php echo $this->fetch('page.bottom.html'); ?>
    </div>
    <div id="batchAction" class="left paddingT15">
      <input class="formbtn batchButton" type="button" value="删除" name="id" uri="index.php?app=limitedtime_setting&act=drop" presubmit="confirm('您确定要删除所选主题的所有信息（包括图片等）吗？');" />
    </div>
  </div>
  <div class="clear"></div>
  <?php endif; ?>

</div>
<?php echo $this->fetch('footer.html'); ?>